package org.jctc.els.modules.biz.mapper.team;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.jctc.els.modules.biz.entity.team.Team;
import org.jctc.els.modules.biz.entity.user.User;
import org.jctc.els.modules.biz.vo.TeamVO;

import java.util.List;

@Mapper
public interface TeamMapper extends BaseMapper<Team> {

    List<TeamVO> selectAllPage(IPage<TeamVO> page , @Param("teamName") String teamName, @Param("teamType") Integer teamType);

    Team selectByTeamId(Long id);

    int updateTeamLeader(@Param("userId") Long userId,@Param("teamId") String teamId);
}
